<?php
    include "class.phpmailer.php"; 
	include "class.smtp.php"; 
    $sender = $_REQUEST['Sender'];
    $subject = $_REQUEST['Subject'];
    $message = $_REQUEST['Message'];   
	$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "ls2454.vdata.vn";
$mail->Port = 465; 
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
$mail->Username = "contact@artpio.com";
$mail->Password = "023921123"; 
$from = "contact@artpio.com"; 
$to="sailing135@yahoo.com.vn";
$name="artpio";
$mail->From = $from;
$mail->FromName = "Artpio";
$mail->AddAddress($to,$name);
$mail->AddReplyTo($from,"Artpio");
$mail->WordWrap = 50; 
$mail->IsHTML(true); 
$mail->Subject = $subject ;
$mail->Body = $message;
$mail->AltBody = "Mail nay duoc gui tu Artpio.com";
if(!$mail->Send())
{
	echo "<h1>Loi khi goi mail: " . $mail->ErrorInfo . '</h1>';
}
else
{
	echo "<h1>Send mail thanh cong</h1>";
}
?>